KVCache

interface KVCache<K, V> : StandardKeyValueRepo<K, V>

Functions

contains
Link copied to clipboard
abstract suspend fun contains(key: K): Boolean
count
Link copied to clipboard
abstract suspend fun count(): Long
get
Link copied to clipboard
abstract suspend fun get(k: K): V?
keys
Link copied to clipboard
abstract suspend fun keys(pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
abstract suspend fun keys(v: V, pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
set
Link copied to clipboard
abstract suspend fun set(toSet: Map<K, V>)
unset
Link copied to clipboard
abstract suspend fun unset(toUnset: List<K>)
unsetWithValues
Link copied to clipboard
open suspend override fun unsetWithValues(toUnset: List<V>)
values
Link copied to clipboard
abstract suspend fun values(pagination: Pagination, reversed: Boolean = false): PaginationResult<V>

Properties

onNewValue
Link copied to clipboard
abstract val onNewValue: Flow<Pair<K, V>>
onValueRemoved
Link copied to clipboard
abstract val onValueRemoved: Flow<K>

Inheritors

SimpleKVCache
Link copied to clipboard